package com.nbufe.domain.dto.process;

import com.nbufe.enums.StageEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author luzhiheng
 * @Date 2023/12/28 11:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StageVo {

    /**
     * id
     */
    private Integer id;

    /**
     * 生产阶段
     */
    private String stage;

    public StageVo(Integer id) {
        this.id = id;
        this.stage = StageEnum.getCode(id);
    }
}
